from ultralytics import YOLO

model = YOLO("runs/detect/train4/weights/best.pt")
results = model.predict(source='./inference/images/',
                        stream=True,
                        show=True,
                        imgsz=640,
                        save=True
                       )
for result in results:
    print(result.boxes.xyxy)

